package com.my.chapter15;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class practice11 {
    public static void main(String[] args) {
        Map<Integer,String> map = New.map();
        map.put(1,"a");
        map.put(2,"b");
        System.out.println(map);
        List<TwoTuple<Character,String>> list = New.list();
        list.add(new TwoTuple<>('c',"C"));
        System.out.println(list);
    }
}

class New{
    public static <K,V> Map<K,V> map(){
        return new HashMap<K,V>();
    }
    public static <T> List<T> list(){
        return new ArrayList<T>();
    }
}
